package com.atguigu.gulimall.zzmycanal.config;

import com.alibaba.otter.canal.protocol.CanalEntry;
import com.xpand.starter.canal.annotation.CanalEventListener;
import com.xpand.starter.canal.annotation.InsertListenPoint;
import com.xpand.starter.canal.annotation.ListenPoint;
import com.xpand.starter.canal.annotation.UpdateListenPoint;

@CanalEventListener
public class PmsListening {
    @ListenPoint(schema = "gulimall_pms", table = {"pms_attr"})
    public void pms_attr(CanalEntry.RowData rowData) {
        System.err.println("pms_attr");
        ShowObj.showData(rowData);
    }

    @ListenPoint(schema = "gulimall_pms", table = {"pms_attr_attrgroup_relation"})
    public void pms_attr_attrgroup_relation(CanalEntry.RowData rowData) {
        System.err.println("pms_attr_attrgroup_relation");
        ShowObj.showData(rowData);
    }


    @ListenPoint(schema = "gulimall_pms", table = {"pms_brand"})
    public void pms_brand(CanalEntry.RowData rowData) {
        System.err.println("pms_brand");
        ShowObj.showData(rowData);
    }

    @ListenPoint(schema = "gulimall_pms", table = {"pms_attr"})
    public void pmsattr(CanalEntry.RowData rowData) {
        System.err.println("pms_attr");
        ShowObj.showData(rowData);
    }
    @ListenPoint(schema = "gulimall_pms", table = {"pms_catgory"})
    public void pms_catgory(CanalEntry.RowData rowData) {
        System.err.println("pms_catgory");
        ShowObj.showData(rowData);
    }

    @ListenPoint(schema = "gulimall_pms", table = {"pms_sku_info"})
    public void pms_sku_info(CanalEntry.RowData rowData) {
        System.err.println("pms_sku_info");
        ShowObj.showData(rowData);
    }
    @ListenPoint(schema = "gulimall_pms", table = {"pms_spu_info"})
    public void pms_spu_info(CanalEntry.RowData rowData) {
        System.err.println("pms_spu_info");
        ShowObj.showData(rowData);
    }
    @ListenPoint(schema = "gulimall_pms", table = {"pms_spu_info_desc"})
    public void pms_spu_info_desc(CanalEntry.RowData rowData) {
        System.err.println("pms_spu_info_desc");
        ShowObj.showData(rowData);
    }

    // 下面是四张关联表
    @ListenPoint(schema = "gulimall_pms", table = {"pms_category_brand_relation"})
    public void pms_category_brand_relation(CanalEntry.RowData rowData) {
        System.err.println("pms_category_brand_relation");
        ShowObj.showData(rowData);
    }
    @ListenPoint(schema = "gulimall_pms", table = {"pms_spu_sal_attr_value"})
    public void pms_spu_sal_attr_value(CanalEntry.RowData rowData) {
        System.err.println("pms_spu_sal_attr_value");
        ShowObj.showData(rowData);
    }
    @ListenPoint(schema = "gulimall_pms", table = {"pms_product_attr_value"})
    public void pms_product_attr_value(CanalEntry.RowData rowData) {
        System.err.println("pms_product_attr_value");
        ShowObj.showData(rowData);
    }

    @ListenPoint(schema = "gulimall_pms", table = {"pms_attr_attrgroup_relation"})
    public void pms_attr_group(CanalEntry.RowData rowData) {
        System.err.println("pms_attr_attrgroup_relation");
        ShowObj.showData(rowData);
    }


}
